package ordemServico;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "item_ord_mat")
@SequenceGenerator( name = "IOM_ID", sequenceName = "IOM_SEQ", allocationSize = 1 )
public class Item_ord_mat implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "id")  
    @GeneratedValue( strategy = GenerationType.IDENTITY, generator = "IOM_ID" ) 
	private int id;
	@Column(name = "id_mat") 
	private int id_mat;
	@Column(name = "desc_mat") 
	private String desc_mat;
	@Column(name = "vlr_mat") 
	private float vlr_mat;
	@Column(name = "qtd_mat") 
	private int qtd_mat;
	@ManyToOne
	@JoinColumn(name = "matord") 
	private EntidadeOrdem matord;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getId_mat() {
		return id_mat;
	}
	public void setId_mat(int id_mat) {
		this.id_mat = id_mat;
	}
	public EntidadeOrdem getMatord() {
		return matord;
	}
	public void setMatord(EntidadeOrdem matord) {
		this.matord = matord;
	}
	public String getDesc_mat() {
		return desc_mat;
	}
	public void setDesc_mat(String desc_mat) {
		this.desc_mat = desc_mat;
	}
	public float getVlr_mat() {
		return vlr_mat;
	}
	public void setVlr_mat(float vlr_mat) {
		this.vlr_mat = vlr_mat;
	}
	public int getQtd_mat() {
		return qtd_mat;
	}
	public void setQtd_mat(int qtd_mat) {
		this.qtd_mat = qtd_mat;
	}
	
}
